package com.huage_07.lesson_02;


import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class CopyImgDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("D:\\document\\android\\files\\image\\lady\\lady_2.jpg");
        FileOutputStream fos = new FileOutputStream("class1\\src\\com\\huage_07\\lesson_02\\lady.jpg");

       byte[] bytes = new byte[1024];
       int len;
       while ((len=fis.read(bytes))!=-1){
           fos.write(bytes,0,len);
       }

       fis.close();
       fos.close();
    }
}
